<?php
if (!ini_get('display_errors')) {
    ini_set('display_errors', 1);
}

//error_reporting(-1);
session_start();
define("ROOT", dirname(__FILE__));
define("URL_PREFIX", "/index.php");
set_time_limit(36000);
if (!ini_get('register_globals')) {

    $GLOBALS = array("_SERVER" => $_SERVER, $_ENV, $_FILES, $_COOKIE, $_POST, $_GET);

    if (isset($_SESSION)) {

        array_unshift($GLOBALS, $_SESSION);

    }

    foreach ($GLOBALS as $superglobal) {

        extract($GLOBALS, EXTR_SKIP);

    }

}
require_once(ROOT . "/Config.php");
require_once(ROOT . "/lib/Register.class.php");
include_once(ROOT . "/lib/Access.class.php");
include_once(ROOT . "/lib/Util.class.php");
include_once(ROOT . "/lib/UrlRewrite.class.php");
require_once(ROOT . "/lib/Boot.class.php");
$boot = new Boot();
$boot->start();

?>